package com.aaa.qy127.controller;

import com.aaa.qy127.entity.RukuCheck;
import com.aaa.qy127.service.RukuCheckService;
import com.aaa.qy127.service.impl.RukuCheckServiceImpl;
import com.aaa.qy127.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/rukuCheck")
public class RukuCheckController {
    RukuCheckService rukuCheckService = new RukuCheckServiceImpl();
    /**
     * 查询等待审核的入库单
     * @param rukuCheck
     * @return
     */
    @RequestMapping("/listCheck")
    public Result queryAllruku(RukuCheck rukuCheck){
        Result result = rukuCheckService.queryAllruku(rukuCheck);
        return result;
    }
    /**
     * 查询等待审核的入库单的详情信息
     * @param rukuCheck
     * @return
     */
    @RequestMapping("/xiangqingCheck")
    public Result getoneruku(RukuCheck rukuCheck){
        Result result = rukuCheckService.getoneruku(rukuCheck);
        return result;
    }
    /**
     * 审核通过
     * @param rukuCheck
     * @return
     */
    @RequestMapping("/yes")
    public String statusyes(RukuCheck rukuCheck){
        String statusyes = rukuCheckService.statusyes(rukuCheck);
        return statusyes;
    }
    /**
     * 审核不通过
     * @param rukuCheck
     * @return
     */
    @RequestMapping("/no")
    public String statusno(RukuCheck rukuCheck){
        String statusno = rukuCheckService.statusno(rukuCheck);
        return statusno;
    }
    /**
     * 查询不通过审核的入库单信息
     * @param rukuCheck
     * @return
     */
    @RequestMapping("/listnotCheck")
    public Result queryAllnotruku(RukuCheck rukuCheck){
        Result result = rukuCheckService.queryAllnotruku(rukuCheck);
        return result;
    }
    /**
     * 查询不通过审核的入库单的详情信息
     * @param rukuCheck
     * @return
     */
    @RequestMapping("/xiangqingnotCheck")
    public Result getonenotruku(RukuCheck rukuCheck){
        Result result = rukuCheckService.getonenotruku(rukuCheck);
        return result;
    }
}
